package cn.huanzi.qch.baseadmin.ecco;

import java.io.Serializable;
import java.util.ArrayList;

public class NodeDTO implements Serializable {
    public static final long serialVersionUID = 1234567890L;
    String name;
    ArrayList<NodeDTO> childs;
    boolean isUnique=false;

    public boolean isIn() {
        return isUnique;
    }

    public void setIn(boolean isUnique) {
        isUnique = isUnique;
    }

    public NodeDTO(){
        childs=new ArrayList<>();
    }
    public NodeDTO(String name, boolean isUnique){
        this.name=name;
        childs=new ArrayList<>();
        this.isUnique=isUnique;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList<NodeDTO> getChilds() {
        return childs;
    }

    public void setChilds(ArrayList<NodeDTO> childs) {
        this.childs = childs;
    }
}
